/**
 * 
 */
package com.evriko.commenterall.persistence;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;

/**
 * @author vladimir.petrusha
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class pReview {
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String author;
	
	@Persistent
	private Text text;
	
	@Persistent
	private Date date;
	
	public pReview() {
		
	}
	
	public pReview(String author, Text text, Date date) {
		this.author = author;
		this.text = text;
		this.date = date;
	}
	
	public pReview(Long id, String author, Text text, Date date) {
		this.id = id;
		this.author = author;
		this.text = text;
		this.date = date;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
	
	public String getAuthor() {
		return this.author;
	}
	
	public void setText(Text text) {
		this.text = text;
	}

	public Text getText(){
		return this.text;
	}
	
	public void setDate(Date date) {
		this.date = date;
	}
	
	public Date getDate(){
		return this.date;
	}
	
}
